$(function(){
	if($("#searchText").val()=='')
	{
		$("#searchText").val("请输入动漫名或原作名");
	}
	$("#searchText").live('click',function(){
		if($("#searchText").val()=="请输入动漫名或原作名")
		{
			$("#searchText").val("");
		}
	});
	$("#searchText").live('blur',function(){
		if($("#searchText").val()=="")
		{
			$("#searchText").val("请输入动漫名或原作名");
		}
	});
	$("#searchSubmit").live('click',function(){
		var search = $("#searchText").val();
		if(search==""||search=="请输入动漫名或原作名")
		{
			return;
		}else
		{
			window.location.href = 'search?search='+search;
		}
	});
});